package com.itguigu.project.ai.entity.mongdb;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author lxr
 * @date 2025/11/8 19:10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("User")
public class TestObject {
    //唯一标识，映射到 MongoDB 文档的 _id 字段
    @Id
    private ObjectId id;
    private int gender;
    private String username; //存储当前聊天记录列表的json字符串
}
